package com.kevin.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kevin.service.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * schedulejob 实体类
 * @author makejava
 * @date 2023-04-06
 */
@TableName(value = "schedule_job")
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class ScheduleJob extends BaseEntity implements Serializable {

    /** 名称 */
    @ApiModelProperty(value = "名称")
    @TableField("job_name")
    private String jobName;

    /** 分组 */
    @ApiModelProperty(value = "分组")
    @TableField("job_group")
    private String jobGroup;

    /** spring bean名称 */
    @ApiModelProperty(value = "spring bean名称")
    @TableField("bean_name")
    private String beanName;

    /** 执行方法 */
    @ApiModelProperty(value = "执行方法")
    @TableField("method")
    private String method;

    /** 参数 */
    @ApiModelProperty(value = "参数")
    @TableField("params")
    private String params;

    /** cron表达式 */
    @ApiModelProperty(value = "cron表达式")
    @TableField("cron_expression")
    private String cronExpression;

    /** 状态  0：暂停  1：正常 */
    @ApiModelProperty(value = "状态  0：暂停  1：正常")
    @TableField("status")
    private Integer status;

    /** 是否并发  0：禁止  1：允许 */
    @ApiModelProperty(value = "是否并发  0：禁止  1：允许")
    @TableField("concurrent")
    private Integer concurrent;

    /** 执行时是否打印日志 */
    @ApiModelProperty(value = "执行时是否打印日志")
    @TableField("print_log")
    private Boolean printLog;

    /** 排除环境 例如:dev,prod */
    @ApiModelProperty(value = "排除环境 例如:dev,prod")
    @TableField("exclude_profiles")
    private String excludeProfiles;

    /** 备注 */
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;


}

